<script setup>

import CardNews from '../components/CardNews.vue';
import Temp from '../components/Temp.vue';

const props =  defineProps({
    msg: {
        type: String,
        required: true
    },
    data: {
        type: Object,
        required: false,
        default (){
        return [
            {title: '石油天然气', url: '/',image:'/src/assets/Rectangle_19.png',infor:'冶金行业常用阀门的标准 截止阀是常用的阀门类型,用于截断管道中的流体。在冶金行业中,截止阀多采用国家标准GB、行业标准JB、美国标准API、英国标准BS、德国标准DIN等标准。通常情况下,压力等级为PN10、PN16、PN25、PN40等。 球阀是利用球体转动实现开关的一种阀门，广泛应用于冶金行业的输送管道和设备上。冶金行业常用阀门的标准 截止阀是常用的阀门类型,用于截断管道中的流体。在冶金门，广泛应用于冶金行业的输送管道和设备上。'},
            {title: '冶金行业', url: '/',image:'/src/assets/Rectangle_19.png',infor:'海洋石油平台控制阀必须应恶劣的工作环境'},
            {title: '精细化工', url: '/',image:'/src/assets/Rectangle_19.png',infor:'海洋石油平台控制阀必须满足一些特殊的要求以适应恶劣的工作环境。首先，它们需要能够在高盐度、高压和高温的环境下稳定工作啊...'},
            {title: '电力行业', url: '/',image:'/src/assets/Rectangle_19.png',infor:'海洋石油平台控制阀必须满足一些特殊的要求以适应恶劣的工作环境。首先，它们需要能够在高盐度、高压和高温的环境下稳定工作啊...'},
            {title: '食品医药', url: '/',image:'/src/assets/Rectangle_19.png',infor:'海洋石油平台控制阀必须满足一些特殊的要求以适应恶劣的工作环境。首先，它们需要能够在高盐度、高压和高温的环境下稳定工作啊...'},
        ]
        }
    },
    typelist: {
        type: Object,
        required: false,
        default(){
            return [
                {id:1, title:'截止式调节阀'},
                {id:2, title:'自立式调节阀 '},
                {id:3, title:'ZSDV/SPV球阀'},
                {id:4, title:'ZSDV/SPV蝶阀'},
                {id:5, title:'ZSDV/SPV闸阀/截止阀'},
            ]
        }
    }
})
</script>

<template>
    <Temp lit=[]>
        <div class="w-full container mx-auto pt-24 mobile:pt-20 mobile:px-6">
            <div class="w-full h-auto self-center bg-no-repeat ">
                <div class="flex mb-[80px] mobile:mb-4">
                    <span class="wen-index-title">新闻中心</span>
                </div>
                <div class="w-full flex">
                    <div class="w-full grid grid-cols-1 justify-items-center mb-12 wow animate__animated animate__pushOnRight timing">
                        <CardNews v-for="(item2, index2) in data" :key="index2" :data="item2"></CardNews>
                    </div>
                </div>
            </div>
        </div>
    </Temp>
</template>
<style scoped>
ul.grid li.active{
  border-color: #2F3767;
  color: #2F3767
}
.mask::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #2F3767cc;
    pointer-events: none;
}
.wen-tcel{
    -webkit-clip-path: polygon(0% 0%, 0% 100%, 66% 100%, 18% 0, 27% 0, 75% 100%, 26% 100%, 6% 100%, 100% 100%, 51% 0);
    clip-path: polygon(0% 0%, 0% 100%, 66% 100%, 18% 0, 27% 0, 75% 100%, 26% 100%, 6% 100%, 100% 100%, 51% 0);
}
</style>